/**
 * 
 */
package de.cbf.cam.dsa.model.entities.states;

import de.cbf.cam.dsa.model.entities.BattleChar;
import de.cbf.cam.dsa.model.entities.OneEnergy;
import de.cbf.cam.dsa.model.entities.states.stateChanger.StateChangerEnergy;

/**
 * @author Nebelritter
 *
 */
public class StateBloodLoss extends OneState {
	/**
	 * @uml.property  name="ammount"
	 */
	private int ammount;
	/**
	 * @uml.property  name="leLoss"
	 * @uml.associationEnd  
	 */
	private StateChangerEnergy leLoss;
//========================
//		constructors
//========================
	public StateBloodLoss(int ammount) {
		super();
		this.ammount = ammount;
	}

//========================
//	   public methods
//========================

	@Override
	public void resolveOnCharacter(BattleChar character) {	
		leLoss = new StateChangerEnergy(OneEnergy.LE,ammount);
		character.addEndRoundState(leLoss);
	}
	@Override
	public void restoreOnCharacter(BattleChar character) {
		character.removeEndRoundState(leLoss);	
	}

	/**
	 * @return
	 * @uml.property  name="ammount"
	 */
	public int getAmmount() {
		return ammount;
	}

	/**
	 * @param ammount
	 * @uml.property  name="ammount"
	 */
	public void setAmmount(int ammount) {
		this.ammount = ammount;
	}
	
//========================
//    standard methods
//========================

//========================
// 	   private methods
//========================

//========================
// 	SHORT property access
//========================

//========================
//		getters
//========================

//========================
//		setters
//========================

//========================
//		listeners
//========================

}
